package eerbaar.position;

public interface IPosition {

    void add(int x, int y) throws WrongPositionException;

    void addListener(IPositionListener listener);

    void decrementX() throws WrongPositionException;

    void decrementY() throws WrongPositionException;

    int getX();

    int getY();

    void incrementX() throws WrongPositionException;

    void incrementY() throws WrongPositionException;

    void removeListener(IPositionListener listener);

    void set(int x, int y) throws WrongPositionException;

}
